import request from '@/utils/axios'

/**注册 */
export const register = (params) => {
  return request.post('user/register', params)
}

/**登录 */
export const login = (params) => {
  return request.post('user/login', params)
}

/**获取用户信息 */
export const getInfo = () => {
  return request.get('user/info')
}
